package com.feihao.zhou.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class Employee {

    @NotBlank(message = "属性不能为空")
    private String name;//员工姓名
    @NotNull(message = "属性不能为空")
    private Integer age;//员工年龄

    public Employee() {
    }

    public Employee(@NotNull(message = "属性不能为空") String name, @NotNull(message = "属性不能为空") Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
